<?php
/**
* 
*/
namespace app\common\validate;
use think\Validate;


class News extends Validate
{

	protected $rule = [
		'content' => "require",
		'title' => "require|max:20",
		'small_title' => "require",
	];

	protected $message = [
	    'content.require' => '内容不为空',
	    'title.require'     => '标题不能少',
	    'small_title.require'   => '小标也得签',
	];

	protected $scene = [
        'edit'  =>  ['title'],
        'add'  =>  ['title','content','small_title'],
    ];


}















 ?>